package com.ashley.thread.test5;

/**
 * @author ashley
 * @date 2019/9/27-20:07
 */
public class MyThread extends Thread {
    private int count =5;

    @Override
    synchronized public void run() {
        super.run();
        count --;
        System.out.println("由线程" + Thread.currentThread().getName()+"计算");
    }
}
